POV-Ray : Newsgroups : povray.general : Duplicate ? : Re: Duplicate ? Server Time
5 Aug 2024 10:21:55 EDT (-0400)
  Re: Duplicate ?  
From: Warp
Date: 24 Nov 2002 14:48:55
Message: <3de12d27@news.povray.org>
As the other have already answered, you need to #declare the mesh as
an identifier and then create instances of this identifier. Like this:

#declare GrassPatch = mesh { ... }

object { GrassPatch translate ... }
object { GrassPatch translate ... }
object { GrassPatch translate ... }
...

  When you do it this way, the mesh data will be stored in memory only once,
independently of how many instances you make.

  I hope this clears all misunderstandings.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.